﻿using Microsoft.AspNetCore.Http;
using PlayingCards.Model.Entity;
using PlayingCards.Model.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlayingCards.Service.IEntityService
{
    /// <summary>
    ///  房间业务接口
    /// </summary>
    public interface IRoomService : IBase
    {
        /// <summary>
        ///  创建房间
        /// </summary>
        /// <param name="roomcode"></param>
        /// <returns></returns>

        Task<Result<string>> CreateRoom(string roomcode);

        /// <summary>
        /// 搜索房间
        /// </summary>
        /// <param name="RoomNumber"></param>
        /// <returns></returns>
        Task<Result<string>> GetRoom(string RoomNumber);

        /// <summary>
        ///  进入房间 (房间详情)
        /// </summary>
        /// <param name="roomcode"></param>
        /// <returns></returns>
        Task<Result<Room>> JoinRoom(string roomcode);

    }
}
